<link type="text/css" rel="stylesheet" href="<?php echo base_url ()?>template/css/add.css" />
<h3>Trang hệ thống</h3><a href="<?php echo base_url().'/index.php/system_pages/new'?>" class="button button_red">Thêm mới</a><hr />
<div style="margin-top: 0px;">
<div style="background: yellow;">
	<?php echo validation_errors();?>	
	</div>
<div class="box left">
	<div class="box_header">Trang hệ thống</div>
	<div class="box_content">
	<ul class="page_list">
		<?php foreach ($pages as $page) :?>
			<li>
				<a href="<?php echo base_url().'index.php/system_pages/detail/'. $page['id'] ;?>"><?php echo $page['page_title']?></a>
				<a href="<?php echo base_url().'index.php/system_pages/delete/'. $page['id'] ;?>" class="right delete"
				onclick="return confirm('Bạn có chắc muốn xóa trang ?')" >Xóa</a>
			</li>
		<?php endforeach;?>
	</ul>
	</div>
</div>

<div class="container_8 left">
	
	<?php $this->load->view($system_pages_content) ?>
</div>
<div class="clear"></div>
</div>
<?php ?>